import request from '@/utils/request'

// 搜索窗口数据
export const GetPropData = () => request.get('/search/index')

// post请求无需结构 而get需要
// export const GetPropData = (params) => request.post('/search/index', params)

// 商品搜索的数据
export const GetSearchData = (params) => request.get('/goods/list', {
  params
})

// 实时搜索的数据
export const GetTimeData = (params) => request.get('/search/helper', {
  params
})

// 清除搜索历史记录
export const clearSearchList = () => request.post('/search/clearhistory')
